import { createRouter, createWebHashHistory } from "vue-router";
// import childRoutes from "./generatorRoutes"
// import dynamicRoutes from "./dynamicRoutes"
//1.声明routers配置，一个routes是一个数组，routes对象里面的基本属性由path和component组成
let routes=[
    {
        name:"login",
        path:"/login",
        component:()=>import("../pages/login/index.vue")
    },
    // ...dynamicRoutes
    
]
//2.创建路由
const router=createRouter({
    history:createWebHashHistory("/base"),
    routes
})
//3.导出路由
export default router